package cn.wolfcode.service;

import cn.wolfcode.domain.Employee;
import cn.wolfcode.qo.EmployeeQueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IEmployeeService {
    void insert(Employee emp, Long[] roleIds);
    void update(Employee emp, Long[] roleIds);
    void delete(Long id);
    Employee selectOne(Long id);
    List<Employee> selectList();
    PageInfo<Employee> query(EmployeeQueryObject qo);

    boolean checkUsername(String username);

    Employee login(String username, String password);

}
